/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.jini.admins; /** * * @author pkuzel * @version */ public class DestroyAdminView extends javax.swing.JPanel { private DestroyAdminModel model; /** Creates new form DestroyAdminView */ public DestroyAdminView(DestroyAdminModel model) { this.model = model; setName("Destroy"); initComponents (); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the FormEditor. */ private void initComponents () {//GEN-BEGIN:initComponents destroyButton = new javax.swing.JButton (); setLayout (new java.awt.GridBagLayout ()); java.awt.GridBagConstraints gridBagConstraints1; destroyButton.setText ("Destroy"); destroyButton.addActionListener (new java.awt.event.ActionListener () { public void actionPerformed (java.awt.event.ActionEvent evt) { destroyButtonActionPerformed (evt); } } ); gridBagConstraints1 = new java.awt.GridBagConstraints (); gridBagConstraints1.insets = new java.awt.Insets (4, 4, 4, 4); add (destroyButton, gridBagConstraints1); }//GEN-END:initComponents private void destroyButtonActionPerformed (java.awt.event.ActionEvent evt) {//GEN-FIRST:event_destroyButtonActionPerformed model.destroy(); }//GEN-LAST:event_destroyButtonActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton destroyButton; // End of variables declaration//GEN-END:variables } /* * <<Log>> * 1 Gandalf 1.0 2/3/00 Petr Kuzel * $ */